$primary-color: #409eff;
$primary-background-color: #ecf5ff;

*,
:after,
:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.el-radio+.el-radio {
  margin-left: 0 !important;
}

.el-radio {
  margin-right: 30px;
  line-height: 32px;
}

.el-checkbox+.el-checkbox {
  margin-left: 0 !important;
}

.el-checkbox {
  margin-right: 30px;
}

.fa-icon {
  width: auto;
  height: 1em;
  /* 或任意其它字体大小相对值 */
  /* 要在 Safari 中正常工作，需要再引入如下两行代码 */
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

.tabs-nav .el-tabs__item {
  padding-left: 10px !important;
  padding-right: 0 !important;
}

.center-container {
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;

  .content-tool {
    position: relative;
    padding: 0 10px;
    background-color: white;

    .tabs-nav {
      width: calc(100% - 80px) !important;
      // width: 100% !important;

      ::v-deep .el-tabs__item {
        padding-left: 10px;
        padding-right: 0;
      }
    }

    .right-tools {
      position: absolute;
      top: 50px;
      right: 15px;
      background-color: #fff;
    }
  }

  .content {
    font-size: 18px;
    border-bottom: solid 2px #e4e7ed;
    position: relative;
    padding: 0 10px;
  }

  .el-main {
    padding: 0;
    position: relative;
  }
}

.components-list {
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden !important;

  .widget-cate {
    padding: 8px 12px;
    font-size: 13px;
  }

  ul {
    position: relative;
    overflow: hidden;
    padding: 0 10px 10px;
    margin: 0;
  }

  .scrollbar-wrap {
    ul {
      margin-bottom: 10px;
    }
  }

  .form-edit-widget-label {
    font-size: 12px;
    display: block;
    width: 48%;
    line-height: 26px;
    position: relative;
    float: left;
    left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 1%;
    color: #333;
    border: 1px solid #f4f6fc;

    &:hover {
      color: $primary-color;
      border: 1px dashed $primary-color;
    }

    &>a {
      display: block;
      cursor: move;
      background: #f4f6fc;
      border: 1px solid #f4f6fc;

      i {
        margin-right: 6px;
        margin-left: 8px;
        font-size: 16px;
        display: inline-block;
        vertical-align: middle;

        &.el-icon-yrt-danhangshurukuang {
          font-size: 20px;
          margin-top: -5px;
          margin-right: 3px;
        }

        &.el-icon-yrt-fuhao-shuzishurukuang {
          font-size: 20px;
          margin-right: 3px;
          margin-top: -5px;
        }

        &.el-icon-yrt-kaiguanclose {
          font-size: 20px;
          margin-right: 3px;
          margin-top: -5px;
        }
      }

      span {
        display: inline-block;
        vertical-align: middle;
      }
    }
  }

  .el-collapse-item__header {
    padding-left: 10px;
  }

  .el-collapse-item__content {
    padding-bottom: 0px;
  }
}

.dialog-container {
  ::v-deep .el-dialog__body {
    padding: 0px;
  }

  ::v-deep .el-collapse-item__header {
    padding-left: 10px;
  }
}

.widget-empty {
  background: url("./assets/form_empty.png") no-repeat;
  background-position: 30% 20%;
}

.designer-container {
  background-color: white;
  z-index: 1000;
  position: relative;

  .module {
    padding: 0 12px;
    overflow: hidden;

    .title {
      padding: 10px 0;
    }
  }
}

.my-popover {
  padding: 0px !important;

  .tree-loading {
    background-color: rgba(255, 255, 255, 0.9);
    right: 220px;
    top: -10px;
  }
}

.tree.scrollbar-wrap {
  max-height: 410px;
  overflow-x: hidden;
  padding: 10px;

  .el-tree {
    margin-bottom: 10px;
  }
}

.fields.scrollbar-wrap {
  max-height: 410px;
  overflow-x: hidden;
  padding: 0px;
}

.widget-config.scrollbar-wrap {
  max-height: 750px;
  overflow-x: hidden;
  padding: 10px;
}

.select-icon {
  padding: 10px;

  .scrollbar-wrap {
    max-height: 500px;
  }
}